#include "StdAfx.h"
#include "DialogBase.h"
#include "setdpi.h"


BEGIN_MESSAGE_MAP(CDialogBase, CDialogType)
	ON_WM_SIZE()
END_MESSAGE_MAP()

void CDialogBase::OnSize(UINT nType, int cx, int cy)
{
	__super::OnSize(nType, cx, cy);
	ArrangeLayout();
}

void CDialogBase::SetDpi(UINT nIDTemplate)
{
	CSetDPI dpi;
	dpi.Attach(AfxFindResourceHandle(MAKEINTRESOURCE(nIDTemplate), RT_DIALOG),
		m_hWnd,nIDTemplate,96.0); 
}